package com.sdksoft.readcard.service

import com.sdksoft.readcard.bean.IDCardBackBean
import com.sdksoft.readcard.bean.IDCardFrontBean
import com.sdksoft.readcard.bean.OCRRequestParam
import retrofit2.http.Body
import retrofit2.http.POST

/**
 * @author mtj
 * @date 2021/9/10
 * @desc 用户信息相关
 * @email mtjsoft3@gmail.com
 */
interface UserService {

    @POST("ocr/uploadImageBase64")
    suspend fun ocrIDCardFrontRequest(
        @Body param: OCRRequestParam
    ): BaseRespond<IDCardFrontBean>

    @POST("ocr/uploadImageBase64")
    suspend fun ocrIDCardBackRequest(
        @Body param: OCRRequestParam
    ): BaseRespond<IDCardBackBean>
}